/**
 * @author: HenryDai
 * @Date: 2022/04/29 13:53
 * @description: 模拟贩卖机的状态
 */
public class demo {
    public static void main(String[] args) {
        VendingMachine machine = new VendingMachine(100);
        machine.insertCoins();
        machine.insertCoins();
        machine.backCoins();
        machine.insertCoins();
        machine.pressButton();
        machine.pressButton();
        machine.distributeGood();
    }
}
